package com.hzcc.hzccblog.module.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import com.hzcc.hzccblog.module.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author 早睡蛋
 * @Date 2022/6/8 09:40:59
 * @Desc:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "article")
public class Article extends BaseEntity {

    @ApiModelProperty(value = "标题")
    @TableId("title")
    private String title;

    @ApiModelProperty(value = "概要")
    @TableField("summary")
    private String summary;

    @ApiModelProperty(value = "内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "状态 0:正常 1:锁定")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "浏览量")
    @TableField("visitor")
    private Integer visitor;

    @ApiModelProperty(value = "点赞数")
    @TableField("love")
    private Integer love;

    @ApiModelProperty(value = "作者")
    @TableField("writer")
    private String writer;

    @ApiModelProperty(value = "标签")
    @TableField("type")
    private String type;



}
